body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    height: 100%;
    width: 100%;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.title {
    font-size: 40px;
    margin-left: 50px;
    order: -1;
}

header nav {
    flex: 1;
    text-align: right;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    margin-top: 50px;
}

.container {
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    display: flex;
}

.left {
    width: 200px;
    /* 将左边导航栏的order设置最小，这样就可以跑到左边 */
    order: -1;
}

.center {
    /* 内容区域自动占满剩余空间 */
    flex: 1;
    padding: 20px;
}

.right {
    width: 200px;
}


textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    resize: none;
}

button {
    padding: 5px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}


.sidebar {

    width: 200px;
    position: fixed;
    padding-top: 20px;
}

.sidebar a {
    padding: 15px;
    color: #000;
    text-decoration: none;
    display: block;
}

.sidebar a:hover {
    background-color: #575757;
}

.sidebar a.active {
    color: #007bff;
    /* 选中时的字体颜色 */
}


.tab-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 2px solid #ccc;
}

.tab-links li {
    margin: 0 20px;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
}

.tab-links li.active {
    color: #007bff;
    /* 选中时的字体颜色 */
}

.tab-links li.active:after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #007bff;
    /* 下划线的颜色 */
    position: absolute;
    bottom: -2px;
    /* 下划线距离文字的高度 */
    left: 0;
}

.user {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 20px;
}

.user a {
    text-decoration: none;
    display: block;
}

/* 文章列表 */
.article-list {
    list-style-type: none;
    padding: 0;
}

.article-item {
    background: #fff;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.article-title {
    font-size: 1.5em;
    margin: 0;
}

#logout {
    margin-top: 10px;
    text-align: left;
}


.article-content {
    margin: 10px 0;
    color: #333;
}

.article-meta {
    font-size: 0.9em;
    color: #666;
}

.article-actions {
    margin-top: 10px;
}

.icon {
    cursor: pointer;
    margin-right: 15px;
    color: #007BFF;
    /* 修改颜色 */
    font-size: 1.2em;
}

.icon:hover {
    color: #0056b3;
    /* 鼠标悬停颜色 */
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* 模态框内容 */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

/* 关闭按钮样式 */
.close-btn {
    float: right;
    cursor: pointer;
}

.comment {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 5px;
}

.comment h4 {
    margin: 0 0 5px 0;
}

.comment p {
    margin: 0;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #35424a;
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

.usertip {
    display: none;
    /* 初始隐藏 */
    position: absolute;
    top: 60px;
    /* 根据需要调整位置 */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* 确保在其他内容之上 */
}

.author {
    font-size: 1.2em;
    margin-bottom: 10px;
    width: 200px;
}



table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #ddd;
}

.circular-icon {
    width: 60px;
    /* 设置容器的宽度 */
    height: 60px;
    /* 设置容器的高度 */
    border-radius: 50%;
    /* 将容器设置为圆形 */
    background: linear-gradient(45deg, #007bff, #007bff);
    /* 设置背景渐变 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    /* 设置文字颜色 */
    font-family: 'Courier New', Courier, monospace;
    /* 设置等宽字体 */
    font-size: 18px;
    /* 设置文字大小 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* 添加阴影效果 */
}